package com.github.catvod.spider.merge;

public class w2 extends ND {
  public w2(String paramString1, String paramString2, String paramString3) {
    R2.u(paramString1);
    R2.u(paramString2);
    R2.u(paramString3);
    q("name", paramString1);
    q("publicId", paramString2);
    q("systemId", paramString3);
    HU();
  }
  
  private void HU() {
    if (ap("publicId")) {
      q("pubSysKey", "PUBLIC");
    } else if (ap("systemId")) {
      q("pubSysKey", "SYSTEM");
    } 
  }
  
  private boolean ap(String paramString) {
    return ZG.oC(j(paramString)) ^ true;
  }
  
  public void M(String paramString) {
    if (paramString != null)
      q("pubSysKey", paramString); 
  }
  
  void Og(Appendable paramAppendable, int paramInt, HZ.Tw paramTw) {
    if (paramTw.Qy() == HZ.Tw.Tw.h && !ap("publicId") && !ap("systemId")) {
      paramAppendable.append("<!doctype");
    } else {
      paramAppendable.append("<!DOCTYPE");
    } 
    if (ap("name"))
      paramAppendable.append(" ").append(j("name")); 
    if (ap("pubSysKey"))
      paramAppendable.append(" ").append(j("pubSysKey")); 
    if (ap("publicId"))
      paramAppendable.append(" \"").append(j("publicId")).append('"'); 
    if (ap("systemId"))
      paramAppendable.append(" \"").append(j("systemId")).append('"'); 
    paramAppendable.append('>');
  }
  
  public String PU() {
    return "#doctype";
  }
  
  void R(Appendable paramAppendable, int paramInt, HZ.Tw paramTw) {}
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/w2.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */